package com.djhu.freepartner.bean;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zw
 * @since 2018-08-09
 */
public class Area extends Model<Area> {

    private static final long serialVersionUID = 1L;

    @TableId
    private Integer id;
    /**
     * 父级ID
     */
    @TableField("parent_id")
    private Integer parentId;
    /**
     * 名称
     */
    private String name;
    /**
     * 简称
     */
    private String shortname;
    /**
     * 经度
     */
    private String longitude;
    /**
     * 纬度
     */
    private String latitude;
    /**
     * 等级(1省/直辖市,2地级市,3区县,4镇/街道)
     */
    @TableField("level_type")
    private Integer levelType;
    /**
     * 等级(1省/直辖市,2地级市,3区县,4镇/街道)
     */
    private String citycode;
    /**
     * 等级(1省/直辖市,2地级市,3区县,4镇/街道)
     */
    private String zipcode;
    /**
     * 等级(1省/直辖市,2地级市,3区县,4镇/街道)
     */
    private String mergername;
    /**
     * 等级(1省/直辖市,2地级市,3区县,4镇/街道)
     */
    private String pingyin;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShortname() {
        return shortname;
    }

    public void setShortname(String shortname) {
        this.shortname = shortname;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public Integer getLevelType() {
        return levelType;
    }

    public void setLevelType(Integer levelType) {
        this.levelType = levelType;
    }

    public String getCitycode() {
        return citycode;
    }

    public void setCitycode(String citycode) {
        this.citycode = citycode;
    }

    public String getZipcode() {
        return zipcode;
    }

    public void setZipcode(String zipcode) {
        this.zipcode = zipcode;
    }

    public String getMergername() {
        return mergername;
    }

    public void setMergername(String mergername) {
        this.mergername = mergername;
    }

    public String getPingyin() {
        return pingyin;
    }

    public void setPingyin(String pingyin) {
        this.pingyin = pingyin;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Area{" +
        ", id=" + id +
        ", parentId=" + parentId +
        ", name=" + name +
        ", shortname=" + shortname +
        ", longitude=" + longitude +
        ", latitude=" + latitude +
        ", levelType=" + levelType +
        ", citycode=" + citycode +
        ", zipcode=" + zipcode +
        ", mergername=" + mergername +
        ", pingyin=" + pingyin +
        "}";
    }
}
